import { Navigate } from "react-router-dom";
import Home from "../page/home";
import Login from "../page/Login";
import Manageone from "../page/HOME/Manageone";
import Managetwo from "../page/HOME/Managetwo";
import Manageq from "../page/HOME/Manageq";
import Managew from "../page/HOME/Managew";
import Manager from "../page/HOME/Manager";
import Managet from "../page/HOME/Managet";
import Index from "../page/HOME/index";

const router = [
    {
        path: "/",
        element: <Navigate to="/home" />
    },
    {
        path: "/home",
        element: <Home></Home>,
        children: [
            {

                path: "/home/index",
                element: <Index></Index>

            },
            {

                path: "/home/manageone",
                element: <Manageone></Manageone>

            },
            {

                path: "/home/managetwo",
                element: <Managetwo></Managetwo>

            },
            {

                path: "/home/manageq",
                element: <Manageq></Manageq>

            },
            {

                path: "/home/managew",
                element: <Managew></Managew>

            },
            {

                path: "/home/manager",
                element: <Manager></Manager>

            },
            {

                path: "/home/managet",
                element: <Managet></Managet>

            },
        ]
    },
    {
        path: "/login",
        element: <Login></Login>
    },

]
export default router